package com.mall.common.domain.content;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.mall.common.domain.BaseEntity;
import com.mall.common.enums.TemplateType;

/**
 * 模板
 */
@Entity
@Table(name = "s_template")
@JsonIgnoreProperties(ignoreUnknown=true) 
public class TemplateDomain extends BaseEntity {

	private static final long serialVersionUID = 7194100998728707668L;
	private String name;// 模板名称
	private String description;// 模板描述
	private String path;// 模板路径
	private TemplateType type; //模版类型
	
	@Column(unique = true)
	public String getName() {
		return name;
	}

	@Column(length = 200, nullable = false)
	public String getPath() {
		return path;
	}

	@Column(length = 100, nullable = false)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(nullable=false)
	public TemplateType getType() {
		return type;
	}

	public void setType(TemplateType type) {
		this.type = type;
	}
	
}
